<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	template="/WEB-INF/jsf/template.xhtml">

	<ui:define name="content">
		<h:form prependId="false">
  
			<p:panel header="Recherche">
			<p:messages />
				
				<h:selectOneRadio id="myRadio" layout="pageDirection" value="#{researchBean.researchTiers}" onchange="submit()">
				 		<a4j:support event="onchange"/>
						<f:selectItem itemValue="rechercherPP.xhtml" itemLabel="Personne Physique"/>   
						<f:selectItem itemValue="rechercherPM.xhtml" itemLabel="Personne Morale"/>
				</h:selectOneRadio>
				<f:subview id="subviewResearchTiers">
					<ui:include  src="#{researchBean.researchTiers}"/>
				</f:subview>
					<h:outputLabel value="#{CaractPPComponent.caractpp.cppNomPers}"></h:outputLabel>
			</p:panel>

		</h:form>
			
	</ui:define>
	<a4j:log level="DEBUG" popup="false" width="400" height="200"/>
	
</ui:composition>